#!/bin/bash
#  usage: source setenv.sh {x86_64|arm64}
#

ARCH=x86_64
ARG=${1:-$ARCH}

case $ARG in
  x86_64)
    ARCH=x86_64
    ;;
  aarch64|arm64)
    ARCH=arm64
    ;;
  *)
    echo "Invalid arch '$1', please use x86_64 or arm64"
    return -1
    ;;
esac

echo "ARCH is ${ARCH}"
PRODUCT="anbox_${ARCH}"
VARIANT="userdebug"

source build/envsetup.sh >/dev/null
lunch ${PRODUCT}-${VARIANT}

